package com.dhcc.DRGsHosp.facade.impl;

import java.util.List;

import javax.inject.Named;

import org.springframework.beans.factory.annotation.Autowired;

import com.dhcc.DRGsHosp.application.DRGVersionApplication;
import com.dhcc.DRGsHosp.core.domain.DRGVersion;
import com.dhcc.DRGsHosp.facade.DRGVersionFacade;
import com.dhcc.DRGsHosp.infra.util.GlobalData;

@Named("drgsHospFacadeImpl16")
public class DRGVersionFacadeImpl implements DRGVersionFacade {

	@Autowired
	private DRGVersionApplication drgVersionApplication;
	
	
	@Override
	public String getDrgVerCode() {
		String verCode = GlobalData.sysConfig.get("GROUP_VER");
		return verCode;
	}

	@Override
	public List<DRGVersion> findAllVersion() {
		// TODO Auto-generated method stub
		return drgVersionApplication.findAllDRGVersionOrder();
	}
}
